#!/bin/bash

make

if [ "$1" == "eth0" ];then
    sshpass -p gv002869 scp -o StrictHostKeyChecking=no ./ramdisk_mk_req.ko root@192.168.5.245:/root
elif [ "$1" == "eth1" ];then
    sshpass -p gv002869 scp -o StrictHostKeyChecking=no ./ramdisk_mk_req.ko root@192.168.9.245:/root
else
    sshpass -p gv002869 scp -o StrictHostKeyChecking=no ./ramdisk_mk_req.ko root@192.168.5.245:/root
fi

echo "build ramdisk module ok..."